/*

  首页


*/


.layout {
  width: 100%;
  background-color: #fff;
  max-width: 6.4rem;
  min-width: 3.2rem;
  position: relative;
  //border-top: 1px solid transparent;
  ///*顶部图片*/
  //
  //


  /* 头部 */

  header {
    background: transparent;
    //padding-top: 0.135rem;
    width: 100%;
    height: 0.58rem;
    z-index: 3;
    top: 0;
    left: 0;
    position: absolute;

    a {
      position: absolute;
      top: 0.135rem;
      left: 0.15rem;

      img {
        display: block;
        width: 1.055rem;
        height: 0.335rem;
      }
    }

    form {
      position: absolute;
      left: 0;
      top: 0.13rem;
      padding-left: 1.27rem;
      padding-right: 0.33rem;
      width: 100%;

      input[type="text"] {
        width: 100%;
        height: 0.35rem;
        background-color: rgba(255, 255, 255, .2);
        border-radius: 0.175rem;
        padding-left: 0.45rem !important;
        color: #666;
        border: none;
      }

      &::after {
        content: "";
        position: absolute;
        top: 0.09rem;
        left: 1.43rem;
        width: 0.185rem;
        height: 0.185rem;
        background: url("../images/index/search.png") no-repeat center center;
        background-size: contain;
      }
    }
  }

  /* 轮播图 */

  .banner {
    /* 轮播点 */

    .mui-indicator {
      border-color: transparent;
      width: 0.1rem !important;
      height: 0.04rem !important;
      background-color: #fff;
      border-radius: 0.03rem !important;

      &.mui-active {
        opacity: .3;
      }
    }
  }

  /* 导航 */

  nav {
    margin-top: 0.205rem;

    ul {
      display: flex;
      justify-content: space-between;
      flex-flow: row wrap;

      li {
        flex: 0 0 19%;
        //background-color: pink;
        margin-bottom: 0.14rem;

        a {
          display: block;
          width: 100%;
          height: 100%;

          img {
            display: block;
            width: 0.44rem;
            margin: 0 auto;
          }

          p {
            margin-top: 0.05rem;
            margin-bottom: 0;
            text-align: center;
            color: #454545;
          }
        }
      }
    }
  }

  /* 加盟头条 */

  .headlines {
    width: 92%;
    height: 0.3rem;
    background: url("../images/index/join_news_back.png") no-repeat center center;
    background-size: cover;
    position: relative;
    margin: 0 auto 0.2rem auto;


    a {
      color: #856819;
      font-size: 0.12rem;
      line-height: 0.3rem;
      position: absolute;
      left: 1rem;
      top: 0;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
  }

  /* 热门专区 */

  .hot {
    position: relative;
    border-bottom: 0.05rem solid #eaeaea;
    margin-bottom: 0.22rem;

    .sel-nav {
      overflow: hidden;

      .sel-active {

      }
    }

    .cont-nav {
      display: flex;
      justify-content: space-between;
      flex-flow: row wrap;

      li {
        flex: 0 0 49%;
        //background-color: cyan;
        margin-bottom: 0.1rem;

        a {
          display: block;
          width: 100%;
          height: 100%;

          img {
            display: block;
            width: 100%;
          }
        }
      }
    }
  }

  /* 精品推荐 */

  .recommend {
    border-bottom: 0.05rem solid #eaeaea;
    margin-bottom: 0.22rem;

    #recommend-cont {
      li {
        a {
          border-top: 1px solid #eaeaea;
          border-bottom: 1px solid #eaeaea;
          display: flex;
          justify-content: space-between;
          padding-top: 0.15rem;
          padding-bottom: 0.15rem;

          .l-img {
            flex: 0 0 1.35rem;
            border-radius: 0.05rem;
            overflow: hidden;

            img {
              display: block;
              width: 100%;
            }
          }

          .r-word {
            flex: 0 0 1.815rem;
            padding-top: 0.1rem;

            h2 {
              font-size: 14px;
              color: #333;
            }

            p {
              font-size: 11px;
              color: #666;
            }

            div {
              span {
                &:nth-of-type(-n+2) {
                  font-size: 11px;
                  color: #ff6c00;
                  background-color: #fff0e5;
                  padding: 0.03rem;
                  border-radius: 0.025rem;
                  margin-right: 0.1rem;
                }

                &:last-child {
                  font-size: 11px;
                  color: #ff2e2e;
                }
              }
            }
          }
        }
      }
    }

    /* 活动 */

    .activity {
      a {
        display: block;
        margin-bottom: 0.15rem;
        color: #ff4040;
        font-size: 0.12rem;
        text-align: center;
        border-radius: 0.05rem;
        overflow: hidden;

        img {
          display: block;
          width: 100%;
        }
      }
    }
  }

  /* 行业资讯 */

  .news {
    border-bottom: 0.05rem solid #eaeaea;

    #news-nav {
      border-bottom: 1px solid #eaeaea;
      padding-bottom: 0.15rem;
    }

    .news-next {
      color: #999;
      font-size: 12px;
      width: 0.49rem;
      height: 0.22rem;
      text-align: center;

      a {
        display: block;
        width: 100%;
        height: 100%;
        background-image: linear-gradient(-74deg,
        rgba(234, 0, 1, 0.59) 0%,
        rgba(245, 26, 27, 0.59) 50%,
        rgba(255, 54, 54, 0.59) 100%),
        linear-gradient(
                #f62d37,
                #f62d37);
        background-blend-mode: normal,
        normal;
        font-size: 12px;
        color: #fff;
        border-radius: 0.25rem;
      }
    }

    #news-cont {
      li {
        padding-top: 0.15rem;
        padding-bottom: 0.15rem;
        border-bottom: 1px solid #eaeaea;
        margin-bottom: 0;

        a {
          display: block;
          width: 100%;
          height: 100%;

          span {
            font-size: 0.15rem;

            &:nth-of-type(1) {
              color: #ff2f2f;
              margin-right: 7px;
            }

            &:nth-of-type(2) {
              color: #333;
            }

            &:nth-of-type(3) {
              color: #999;

              em {
                margin-right: 3.5px;
              }
            }
          }

          &:last-child {
            border-bottom: none;
          }
        }

      }
    }
  }

  /* tab栏公共样式 */

  .sel-nav {
    position: relative;
    padding-left: 0.2rem;
    overflow: hidden;
    margin-bottom: 0.07rem;

    li {
      float: left;
      margin-right: 0.17rem;
      color: #666;
      font-size: 12.5px;

      &.sel-active {
        font-family: Alibaba !important;
        font-weight: 700;
        color: #333;
        font-size: 16.5px;
      }
    }

    &::after {
      content: "";
      position: absolute;
      width: 0.025rem !important;
      height: 0.18rem !important;
      background-color: #ff2f2f;
      top: 2px;
      left: 0.08rem;
    }
  }

  .cont-nav {
    clear: both;

    li {
      margin-bottom: 0.1rem;

    }
  }

  /* 友情链接 */

  .friend-link {
    padding-top: 0.1rem;
    padding-bottom: 0.21rem;

    h2 {
      color: #333;
      font-size: 11px;
      margin-bottom: 0.11rem;
    }

    .link-cont {
      display: flex;
      justify-content: space-between;
      flex-flow: row wrap;

      a {
        color: #333;
        font-size: 11px;
        flex: 0 0 20%;
      }
    }
  }
}
